<?$this->_extends("_layouts/index_layout");?>
<?$this->_block("contents");?>
<div class="main border1 mt10 line30"><span class="color2 ml10">您现在的位置：</span><a href="<?php echo url('index');?>">首页</a> > <a href="<?php echo url('index/course');?>">教材展示</a> > 课程介绍</div>
<div class="main mt10">

<div class="border1 width680 fleft">
  <div class="title"><?php echo $news['title'];?></div>
  <div class="color4 line30 center">时间：<?php echo date('Y-m-d', $news['release_date']);?> 点击数：<?php echo $news['hits'];?></div>
  <div class="color5 mt20 mb20 ml10 mr10">
  <?php echo stripslashes($news['content']);?>
      <?php 
	  //print_r($enclosure);
	  if(!empty($enclosure)){?>
      <div>
        <?php
	   $count = 0;
       foreach($enclosure as $k => $v){
			$file_name = explode('.',$v['name']); 
			$count ++;  
		?>
        <p> 附件<?php echo $count;?>：<a href="<?php echo $_BASE_DIR.$v['path']?>" target="_blank" title="点击下载附件"><?php echo $file_name[0];?></a> </p>
        <?php }?>
      </div>
      <?php }?>
</div>

<div class="clear"></div>
</div>

<div class="border1 width270 fright">
<div class="colorbg3 color1">推荐课程</div>
<ul class="lb mb10">
  <?php 
		foreach ($course_list_recommend as $row) {
		?>
        
      <li><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes($row['title']),30,'...');?></a></li>
      <?php }?>
</ul>
</div>

<div class="border1 width270 fright mt10">
<div class="colorbg3 color1">热点课程</div>
<ul class="lb mb10">
  <?php 
		foreach ($course_list_hot as $row) {
		?>
        
      <li><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes($row['title']),30,'...');?></a></li>
      <?php }?>
</ul>
</div>
<div class="clear"> </div>
</div>

<?$this->_endblock();?>
